package cn.npe2.scaffolding.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.Tolerate;

/**
 * @author Echan
 * @since 2022-04-01 18:00
 */

@Data
@Builder
@TableName("test")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class TestModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Tolerate
    public TestModel() {

    }

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 地址
     */
    private String address;

}
